package com.bangyu.monitor.modular.system.entity;

import lombok.Data;

import java.util.Objects;

/**
 * @Auther: zhangxue
 * @Date: 19/5/5 20:13
 * @Description:
 */
@Data
public class RealtimeOriginalDto {
    private long receiveTime;//原始数据接收(发生)时间
    private Float temperature;//温度
    private Float standBendValue;//该温度下的标准挠度值
    private Float bendValue;//挠度值
    private Float staticDisplayment;

    @Override public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        RealtimeOriginalDto that = (RealtimeOriginalDto) o;
        return receiveTime == that.receiveTime && Objects
                .equals(bendValue, that.bendValue);
    }

    @Override public int hashCode() {

        return Objects.hash(receiveTime, bendValue);
    }
}
